import OneWorker from './01.Worker.js?worker'
import TwoWorker from './02.Worker.js?worker'
self.onmessage = (msg) => {
  const one = new OneWorker()
  const two = new TwoWorker()
  one.onmessage = () => {
    self.postMessage('one 线程的 messgae')
  }
  two.onmessage = () => {
    self.postMessage('two 线程的 messgae')
  }
  one.postMessage(1)
  two.postMessage(2)
}
